/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package researchgrants.parts.GrantRequest.filters;

import researchgrants.parts.GrantRequest.*;

/**
 * Filter a GrantRequest if it has the same id as the given id
 * @author DOStudent1
 */
class GrantRequestFilterId implements GrantRequestFilter {

    private int id;
    
    GrantRequestFilterId(int id) {
        this.id=id;
    }

    @Override
    public boolean isFiltered(GrantRequest grantRequest) {
        return(grantRequest.getId()!=id);
    }

}
